export default {
  height: 'auto',
  calcHeight: 30,
  tip: false,
  searchShow: true,
  searchMenuSpan: 6,
  border: true,
  index: false,
  viewBtn: true,
  selection: true,
  dialogClickModal: false,
  align: 'center',
  searchMenuPosition: 'right',
  searchLabelWidth: 110,
  indexWidth: 80,
  indexLabel: '编号',
  addBtn: false,
  labelWidth: 145,
  searchIndex: 3,
  searchIcon: true,
  column: [
    {
      label: "主键",
      prop: "id",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
      display: false,
    },
    {
      label: "租户ID",
      prop: "tenantId",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
      display: false,
    },
    {
      label: "创建部门",
      prop: "createDept",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
      display: false,
    },
    {
      label: "修改人",
      prop: "updateUser",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
      display: false,
    },
    {
      label: "修改时间",
      prop: "updateTime",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
      display: false,
    },
    {
      label: "是否已删除",
      prop: "isDeleted",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
      display: false,
    },
    {
      label: "姓名",
      prop: "name",
      type: 'input',
      filterable: true,
      overHidden: true,
      search: true,
      rules: [
        {
          required: true,
          message: '请输入姓名',
          trigger: 'blur',
        },
      ],
    },
    {
      label: "所属业务",
      prop: "trial",
      type: "input",
      addDisplay:false,
      videDisplay:false,
      editDisplay:false,
      hide:true,
    },
    {
      label: "标识",
      prop: "identification",
      type: "input",
      addDisplay:false,
      videDisplay:false,
      editDisplay:false,
      hide:true,
    },
    {
      label: "姓名缩写",
      prop: "nameSx",
      type: 'input',
      filterable: true,
      overHidden: true,
      rules: [
        {
          required: true,
          message: '请输入姓名缩写',
          trigger: 'blur',
        },
      ],
      hide:true,
    },
    {
      label: "手机号",
      prop: "phone",
      type: "input",
      search: true,
      hide:true,
    },
    {
      label: '手机号是否认证',
      prop: 'radio',
      type: 'radio',
      border: true,
      dicData: [
        { label: '否', value: 0 },
        { label: '是', value: 1 },
      ],
      hide:true,
    },
    {
      label: "简称",
      prop: "JC",
      type: "input",
      disabled: true,
      hide:true,
      addDisplay:false,
    },
    {
      label: "民族",
      prop: "MZ",
      type: "input",
      disabled: true,
      hide:true,
      addDisplay:false,
    },
    {
      label: "出生日期",
      prop: "birthday",
      type: "date",
      format: 'YYYY年MM月DD日',
      valueFormat: 'YYYY-MM-DD HH:mm:ss',
      hide:true,
       disabledDate (time) {
        return time.getTime() > Date.now();
      },
    },
    {
      label: "年龄",
      prop: "NL",
      type: "input",
      disabled: true,
      hide:true,
      addDisplay:false,
    },
    {
      label: "病历号",
      prop: "caseNo",
      type: "input",
      search: true,
      disabled: true,
      addDisplay:false,
    },
    {
      label: "邮箱",
      prop: "mailbox",
      type: "input",
      search: true,
      disabled: true,
      hide:true,
      addDisplay:false,
    },

    {
      label: "性别",
      prop: "sex",
      type: 'select',
      dicUrl: '/api/blade-system/dict/dictionary?code=sex',
      props: {
        label: 'dictValue',
        value: 'dictKey',
      },
      filterable: true,
      overHidden: true,
      hide: true,
      search: true,
      disabled: true,
      addDisplay:false,
    },
    {
      label: "疾病种类",
      prop: "jbzl",
      type: 'tree',
      dicUrl: '/api/blade-illness/illness/tree',
      props: {
        label: 'title',
        value: 'id',
      },
      filterable: true,
      overHidden: true,
      hide: true,
      search: true,
      disabled: true,
      addDisplay:false,
    },
    {
      label: "出生日期",
      prop: "birthdays",
      type: "datetimerange",
      format: 'YYYY-MM-DD',
      valueFormat: 'YYYY-MM-DD',
      startPlaceholder: '开始日期',
      endPlaceholder: '结束日期',
      search: true,
      searchRange: true,    //当改字段作为搜索框使用的时候，会出现显示不全问题，加上searchRange:true，即可解决
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "创建时间",
      prop: "timeLists",
      type: "datetimerange",
      format: 'YYYY-MM-DD',
      valueFormat: 'YYYY-MM-DD',
      startPlaceholder: '开始日期',
      endPlaceholder: '结束日期',
      search: true,
      searchRange: true,    //当改字段作为搜索框使用的时候，会出现显示不全问题，加上searchRange:true，即可解决
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },

    {
      label: "病例状态",
      prop: "caseStatus",
      type: 'select',
      dicUrl: '/api/blade-system/dict-biz/dictionary?code=case_status',
      dataType: "number",
      props: {
        label: 'dictValue',
        value: 'dictKey',
      },
      filterable: true,
      overHidden: true,
      search: true,
      editDisabled:false,
      addDisplay:false,
      disabled: true,
    },
    {
      // groupId
      label: "分组",
      prop: "groupName",
      type: "input",
      search: true,
      disabled: true,
      addDisplay:false,
    },
    {
      label: '录入员',
      prop: 'LRY',
      type: 'select',
      dicUrl: `/blade-system/user/user-list`,
      props: {
        label: 'realName',
        value: 'id',
      },
      filterable: true,
      overHidden: true,
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      search: true,
      hide:true,
    },
    // {
    //   label: "创建时间",
    //   prop: "createTime",
    //   type: "input",
    //   addDisplay: false,
    //   editDisplay: false,
    //   viewDisplay: false,
    //   overHidden: true,
    // },
    {
      label: "入组时间",
      // prop: "joinTime",
      prop: "createTime",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      overHidden: true,
    },
    {
      label: "基准时间",
      prop: "referenceTime",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      overHidden: true,
    },
    {
      // researcher
      label: "所属研究者",
      prop: "researcherName",
      type: "input",
      // type: 'select',
      // dicUrl: `/blade-system/user/user-list`,
      // props: {
      //   label: 'realName',
      //   value: 'id',
      // },
      // addDisplay:false,
      // editDisabled: true,
      filterable: true,
      overHidden: true,
    },
    {
      //  hospitalDept
      label: "所属机构",
      prop: "hospitalDeptName",
      type: "input",
      // type: 'tree',
      // dicUrl: `/api/blade-system/dept/tree`,
      // props: {
      //   label: 'title',
      //   value: 'id',
      // },
      // addDisplay:false,
      // editDisabled: true,
      filterable: true,
      overHidden: true,
      search: true,
    },

    {
      label: "住院号",
      prop: "zyh",
      type: "input",
      viewDisplay: false,
      search: true,
      hide: true,
    },
    {
      label: "现住地",
      prop: "XZD",
      type: "input",
      viewDisplay: false,
      addDisplay:false,
      hide: true,
      disabled: true,
    },
    {
      label: "籍贯地址",
      prop: "jg",
      type: "input",
      viewDisplay: false,
      addDisplay:false,
      search: true,
      hide: true,
      disabled: true,
    },
    {
      label: "病史和描述",
      prop: "bsms",
      type: "input",
      viewDisplay: false,
      addDisplay:false,
      search: true,
      hide: true,
      disabled: true,
    },
    {
      label: "诊断",
      prop: "ZD",
      type: "input",
      viewDisplay: false,
      addDisplay:false,
      hide: true,
      disabled: true,
    },
    {
      label: "筛查CRF",
      prop: "CRF",
      type: 'input',
      dicUrl: `/blade-system/user/user-list`,
      props: {
        label: 'realName',
        value: 'id',
      },
      addDisplay:false,
      editDisplay: false,
      filterable: true,
      overHidden: true,
      slot: true,
    },
  ]
}
